import reqCode from '@/config/reqCode'
import commonRequest from '@/request/commonRequest'
import cacheHandler from '@/utils/cacheHandler'
import { config } from '@/config/systemConfig.js'

function mixedLogin(request) {
  const obj = { ...request }
  return obj
}

function getTicket() {
  const code = reqCode.PATIENT_WEB_GETTICKET
  const terminalId = cacheHandler.getTerminalId()
  const obj = { 'body': { terminalId }}
  const requestBody = commonRequest.generateRequest(code, config.SERVICE_REQUEST_VERSION, obj)
  return requestBody
}

export default {
  mixedLogin,
  getTicket
}
